package cn.wolfcode.crmspringboot.mapper;

import cn.wolfcode.crmspringboot.domain.UserInfo;
import cn.wolfcode.crmspringboot.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInfoMapper {
    UserInfo getUserInfo(String phone);

    void saveUser(UserInfo user);

    List<UserInfo> selectForList(QueryObject qo);

    void updateUserlearn(UserInfo user);

    List<UserInfo> getUserList();

    void updateUserState(@Param("phone") String phone, @Param("offline") String offline);

    void logout();

    List<UserInfo> selectAll();

    void deleteUser(String userId);

    void disableOrEnable(@Param("phone") String phone, @Param("status") String status);
}
